package com.groupwork.meeting.entity;

import java.util.Objects;

/**
 * @author 鱼凫
 * @version 1.0
 * Create by 2021/11/1 23:29
 * @Description //TODO 角色实体类
 */


public class Role {
    private String roleId;
    private String roleName;
    private String roleDescribe;

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public String getRoleDescribe() {
        return roleDescribe;
    }

    public void setRoleDescribe(String roleDescribe) {
        this.roleDescribe = roleDescribe;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof Role)) return false;
        Role role = (Role) o;
        return Objects.equals(getRoleId(), role.getRoleId()) && Objects.equals(getRoleName(), role.getRoleName()) && Objects.equals(getRoleDescribe(), role.getRoleDescribe());
    }

    @Override
    public int hashCode() {
        return Objects.hash(getRoleId(), getRoleName(), getRoleDescribe());
    }

    @Override
    public String toString() {
        return "Role{" +
                "roleId='" + roleId + '\'' +
                ", roleName='" + roleName + '\'' +
                ", roleDescribe='" + roleDescribe + '\'' +
                '}';
    }
}
